/**
 * New DeviceOne File
 */
var d1 = require("deviceone");
var do_Global = d1.sm("do_Global");

//解析寺庙信息
module.exports.paraseTempleInfo = function(data,currentPage){
	
	var templeArray = [];
	
	for (var i = 0; i < data.length; i++) {
		var item = data[i];
		templeArray.push({
			"template":0,
			"albumPath":do_Global.getMemory("img_url")+item.albums[0].albumPath,
			"templeName":item.templeName,
			"province":item.province,
			"item":currentPage * 10 + i,
			"templeDesc":item.templeDesc,
			"contactPerson":item.contactPerson,
			"createTime":item.createTime,
			"status":item.status,
			"labels":item.labels
		});
	}
	
	return templeArray;
};
